import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const Goods: AppRouteRecordRaw = {
  path: '/goodCenter',
  name: 'goodcenter',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '商品中心',
    requiresAuth: true,
    icon: 'icon-copy',
    order: 0,
  },
  children: [
    {
      path: 'index',
      name: 'index',
      component: () => import('@/views/goodsCenter/index.vue'),
      meta: {
        locale: '商品分类',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'item',
      name: 'item',
      component: () => import('@/views/goodsCenter/goodItem/index.vue'),
      meta: {
        locale: '商品',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'goods',
      name: 'goods',
      component: () => import('@/views/goodsCenter/goods/index.vue'),
      meta: {
        locale: '商品1',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default Goods;
